{template 'default','header'}

 <table width="985"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td valign="top"><img src="images/tm.gif" width="2" height="2"></td>
  </tr>
</table>
{template 'default','tag_banner'}



<table width="985"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td valign="top"><img src="images/tm.gif" width="2" height="2" /></td>
  </tr>
</table>
<table width="985"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
   <td width="208" valign="top">
        {template 'default','tag_right'}
        
    </td>
        
    <td width="771" height="233" valign="top">
        
        
        <table width="100%"  border="0" cellpadding="0" cellspacing="8" class="font12">
      <tr>
        <td height="26" valign="bottom"><span class="font14_r"><b>{$category_single['catname']}</b></span></td>
      </tr>
	    <tr>
        <td valign="top">     <table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td bgcolor="#CCCCCC"><img src="images/tm.gif" width="1" height="1" /></td>
            </tr>
          </table></td>
      </tr>
	  
      <tr>
        <td valign="top"><table width="100%"  border="0" cellspacing="8" cellpadding="0">
          {php $i=1;$size=false}
          	{get sql="select * from edufe_category where status=99 and parentid='$catid' order by listorder desc"}
            {php if ($size===false)$size = sizeof($DATA);}
            {if $i%2==1}
			<tr>
              {/if}
            
            <td width="50%" valign="top"><table width="100%"  border="0" cellspacing="2" cellpadding="0">
                <tr>
                  <td class="font12_r"><img src="images/jt.gif" width="11" height="11" /> <span style="font-size:14px; font-weight:bold; color:#000000">{$r['catname']}</span></td>
                </tr>
                {php $thiscatid = $r['catid']}
                {if $r['child']==1}
                {get sql="select * from edufe_category where status=99 and parentid='$thiscatid' order by listorder desc" rows="5" return="_r"}
                <tr>
                  <td class="font10" style="padding-left:17px;"><a href="{$_r['url']}" title="{$_r['catname']}">{str_cut($_r['catname'],52)}</a></td>
                </tr>
              	{/get}
                {else}
                {get sql="select c.*,cr.* from edufe_content as c, edufe_content_rel as cr where cr.catid='$thiscatid' and cr.contentid=c.id and c.status=3 and c.siteid='master' order by c.listorder desc,c.addtime desc" rows="5" page="1" return="_r"}	
                <tr>
                  <td class="font10" style="padding-left:17px;"><a href="{if !empty($_r['link'])}{$_r['link']}{else}content_{$_r['cid']}.html{/if}" title="{$_r['title']}">{str_cut($_r['title'],52)}</a></td>
                </tr>
              	{/get}
                {/if}	
                
              		
					 <tr>
                  <td align="right" class="font10" style="padding-right:17px;"><a href="{$r['url']}">>>More</a></td>
                </tr>
            </table></td>
            
            {if $i%2==0}
            </tr>
            {/if}
            
            {if $i==$size && $i%2==1}
            <td width="50%" valign="top">&nbsp;</td></tr>
            {/if}
            {php $i++;}
			{/get}
            
            
          
          
          
          
          
        </table>          </td>
      </tr>
    </table>    
    
    
  </td>
  </tr>
</table>
<table width="985"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><img src="images/tm.gif" width="4" height="4" /></td>
  </tr>
</table>

{template 'default','footer'}


